body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}
.fa-chevron-down {
    margin-left: 2px;
}
#cart-icon {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1000;
    left: 97%;
}

#contador-carrito {
    position: absolute;
    top: -11px;
    right: -12px;
    background-color: transparent;
    color: #FFD700;
    font-size: 14px;
    font-weight: bold;
}
header {
    width: 100vw;

    background-size: cover;
    background-position: center;
    background-color: #333;
}


.barra-superior {
    background-color: #FFD700;
    color: #333;
    text-align: center;
    padding: 0.4rem 0;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-transform: uppercase;
    font-family: "Nunito Sans";
}
.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
    background-color: #333;
    color: #fff;
}

.nav.active{
    background-color: #0000003a;
    padding: 1em;
    z-index: 4;
}
.BarraInicio{
    display: flex;
    padding-right: 59px;
}
.BarraInicio li {
    list-style: none;
    margin: 1em;

}

.Img_fondo {
    height: 3em;
    margin-left: 4em;
    margin-bottom: 0.3em;
}

.BarraInicio li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.5s ease-in-out;
}

.BarraInicio li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F2D411;
    transition: width 0.3s ease-in-out;
}

.BarraInicio li a:hover::after {
    width: 100%;
    color: #0b6b2e;
}
.dropdown {
    position: relative;
    z-index: 9999;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -40%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    list-style: none;
    z-index: 9999;
    min-width: 150px;
    padding-left: 10px;
  }

.dropdown-menu li {
    padding: 10px 20px;
    margin: 0;
    text-align: center;
    
}

.dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    color: #000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    z-index: 1000;
}
.logo-container {
    position: absolute;
    left: 7%;
    transform: translateX(-50%);
    z-index: 999;
}
.logo {
    height: 50px;
}

/* Responsive*/
@media (max-width: 768px) {
    header {
        height: 100%; 
    }
    .Img_fondo {
        display: none;
    }
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
  }
  .menu-close-icon,
  .menu-logo {
      display: none;
  }
  
  .BarraInicio.active .menu-close-icon,
  .BarraInicio.active .menu-logo {
      display: block;
  }
  .menu {
    display: flex;
    list-style: none;
  }

  @media (max-width: 768px) {
    .menu-icon {
      display: block;
    }
    
  
    .menu {
      display: none;
      flex-direction: column;
    }
  
    .menu.active {
      display: flex;
    }
    .BarraInicio {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh; 
        background-color: #fffdf8;
        z-index: 1000;
        transition: left 0.7s ease-in-out;
        padding-top: 10px;
        overflow-y: auto; 
        margin: 0;
        padding-left: 0vw; 
        padding-right: 0px;
    }
    .BarraInicio.active {
        left: 0;
        margin-top: 0;
        padding-left: 0;
        padding-right: 0;
        height: 100vh; 
    }
    
    .BarraInicio li {
        margin: 1em 0;

    }
    .BarraInicio li a {
        color: #000000;
        text-decoration: none;
        font-size: 15px;
        padding-left: 20px;
        display: block;
        font-family: 'Comfortaa';
        font-weight: 100;
    }

    .menu-close-icon {
        position: absolute;
        top: 25px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        color: #000000;
        background-color: #fffdf8;
        border: 0px ;
    }
    .menu-logo {
        width: 100px; 
        margin: 0 auto; 
        margin-top: -32px;
    }
    .dropdown-menu {
        display: block;
        position: static;
        background-color: #ffd701;
        padding-top: 0px;
        width: 100%;
        height: 1px;
        text-align: left;
      }
    
    .categoria_productos {
        border-bottom: 0.5px solid #F2D411;
        padding-bottom: 4px;
        font-weight: bold;
    }
    .dropdown-menu li {
        margin: 0;
        padding-top: 10px;
        text-align: left;
        padding-left: 35px;
    }
    .dropdown-menu li a {
        color: #000;
        font-weight: 100; 
        padding: 0;
    }
    .dropdown-toggle {
        padding-bottom: 10px;
        font-weight: bold;
    }
    h1, h2, p {
        font-size: 90%; 
    }
    .LogoInicio {
        width: 9em; 
    }
    .FraseInicio {
        font-size: 16px; 
    }
    .Boton_inicio {
        padding: 8px 20px;
    }
    .Logo-Frase {
        height: 70vh;
    }
    .nav {
        height: 4em;
    }
    .logo-container {
        position: absolute;
        left: 50%;
        z-index: 999;
    }
    #cart-icon {
        left: -11px;
    }
}


.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25d366; 
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s ease-in-out; 
}

.whatsapp-icon img {
    width: 30px; 
    height: 30px;
}

.whatsapp-icon:hover {
    transform: scale(1.1); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); 
}

.whatsapp-icon:active {
    animation: ripple 0.4s ease-in-out;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 10px;
        right: 10px;
    }

    .whatsapp-icon {
        width: 50px; 
        height: 50px;
    }

    .whatsapp-icon img {
        width: 25px; 
        height: 25px;
    }
}
body, html {
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box; 
    max-width: 100%; 
}

.menu-logo {
    display: none; 
    width: 100px;
    margin: 0 auto 20px auto; 
    transition: opacity 0.5s ease-in-out;
}

.menu-close-icon {
    display: none; 
    position: absolute;
    top: 25px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .BarraInicio.active .menu-logo,
    .BarraInicio.active .menu-close-icon,
    .BarraInicio:not(.active) .menu-logo,
    .BarraInicio:not(.active) .menu-close-icon {
        display: block;
        opacity: 1;
    }
    
    .BarraInicio:not(.active) .menu-logo,
    .BarraInicio:not(.active) .menu-close-icon {
        opacity: 0;
        pointer-events: none; 
    }
    .menu-logo{
    margin-top: -48px;
    }
}